package ceyan;

public class Dog  extends Pet{
    //子类调用父类的无参构造方法
    public Dog() {
        super("鱼鱼","女",24);
        //输出语句
        System.out.println("狗的基本信息");
        System.out.println("姓名为:"+getName()+"\n"+"性别为:"+getSex()+"\n"+"年龄"+getAge());
    }
}
